﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.AutoUpdate.Service
{
    /// <summary>
    /// 自动升级配置
    /// </summary>
    public class AutoUpdateConfig
    {
        public AutoUpdateConfig()
        {
            VersionFile = "version.txt";
            GetRemoveVersionUrl = "";
            UpdateExeIcon = "";
            PackagePrefix = "setup";
            MainProcessName = "ShanNiang.Packing";
            //IdentityServer = "";
        }
        public string VersionFile { get; set; }
        /// <summary>
        /// 查询版本号URL
        /// </summary>
        public string GetRemoveVersionUrl { get; set; }
        /// <summary>
        /// 被更新程序的图标
        /// </summary>
        public string UpdateExeIcon { get; set; }
        /// <summary>
        /// 安装包前缀
        /// </summary>
        public string PackagePrefix { get; set; }
        /// <summary>
        /// 被升级主程序进程名称
        /// </summary>
        public string MainProcessName { get; set; }
        ///// <summary>
        ///// 认证服务器
        ///// </summary>
        //public string IdentityServer{ get; set; }
        ///// <summary>
        ///// 客户端Id
        ///// </summary>
        //public string ClientId { get; set; } = "";
        ///// <summary>
        ///// 客户端密钥
        ///// </summary>
        //public string ClientSecret { get; set; } = "";
    }
}
